package opn.srn.command.load;

import opn.srn.command.CommandFactory;
import opn.srn.command.load.parser.ParserFactory;
import opn.srn.command.load.parser.delimited.DelimitedParser;
import opn.srn.command.load.parser.fixed.FixedLengthParser;
import opn.srn.plugin.IPlugin;
import opn.srn.plugin.PluginContext;

public class Plugin implements IPlugin {

	@Override
	public void start(PluginContext context) throws Exception {
		ParserFactory.get().register("fixed", FixedLengthParser.class.getCanonicalName());
		ParserFactory.get().register("delimited", DelimitedParser.class.getCanonicalName());
		
		CommandFactory.get().register(LoadCommand.NAME, LoadCommand.class.getCanonicalName());
	}

	@Override
	public void stop(PluginContext context) throws Exception {
	}

}
